#ifndef BOTTHREAD_H
#define BOTTHREAD_H

#include <QThread>
#include <QTcpSocket>
#include <QDebug>
#include "Constants.h"

class BotThread : public QThread
{
    Q_OBJECT
public:
    explicit BotThread(int ID, QObject *parent = 0);
    void run();

signals:
    void error(QTcpSocket::SocketError socketerror);
    void MsgChange(QString newMsg);
    void DeleteSocket(int oldSocket);
    void AddSocket(int newSocket);

public slots:
    void readyRead();
    void disconnected();

private:
    QTcpSocket *socket;
    int socketDescriptor;
};

#endif // BOTTHREAD_H
